﻿using System.Collections.Generic;
using System.Collections;

namespace QuizzAdminData
{

    public class Spel
    {

        private int _id;

        private List<Vraag> _vragen;

        private Hashtable _teams_Scores = new Hashtable();

        public int Id
        {
            get
            {
                return this._id;
            }
            set
            {
                this._id = value;
            }
        }

        public Hashtable Teams_Scores
        {
            get
            {
                return this._teams_Scores;
            }
            set
            {
                this._teams_Scores = value;
            }
        }

        public List<Vraag> Vragen
        {
            get
            {
                return this._vragen;
            }
            set
            {
                this._vragen = value;
            }
        }

        public void VoegVraagToe(Vraag v)
        {
            this._vragen.Add(v);
        }

        public void UpdateScores()
        {
            this._teams_Scores = SpelDB.GetTeamsScores(this._id);
        }

    }

}